package dk.dashboardFP.panels.introspectionPanel {
	import dk.dashboardFP.interactionElementFramwork.smartButton.SmartButton;

	/**
	 * @author josef
	 */
	public class FoldButton extends SmartButton {
		private var _doAsset : FoldButtonAsset;

		public function FoldButton(oRefrenceObject : Object = null) {
			super(oRefrenceObject);
			
			setupElements();
		}

		private function setupElements() : void {
			
			//:::::::
			// asset 
			_doAsset=new FoldButtonAsset();
			addChild(_doAsset);
			
			setClosed();
		}

		public function setOpen() : void {
			_doAsset.gotoAndStop(2);
		}

		public function setClosed() : void {
			_doAsset.gotoAndStop(1);
		}
	}
}
